package com.xfgg.design.singleton;

/**
 * 双检式
 *
 * @author xfgg
 */
public class Dcl {
    private volatile static Dcl dcl;

    private Dcl() {

    }

    public static Dcl getDcl() {
        if (dcl == null) {
            synchronized (Dcl.class) {
                if (dcl == null) {
                    dcl = new Dcl();
                }
            }
        }
        return dcl;
    }
}
